import request from '@/axios'

function formatRequestUri(name) {
  return 'flow/node/form/power/' + name
}

export function Sync(data) {
  return request.post({
    url: formatRequestUri('Sync'),
    data
  })
}

export function Gets(nodeId) {
  return request.get({
    url: formatRequestUri('Gets'),
    params: {
      nodeId
    }
  })
}
